From: Adam Dingle Date: Thu, 21 Apr 2011 13:59:26 +0000 (-0700) Subject: Display dialogs on the primary monitor when no window has focus. X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8311 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a87f51487e51b9c53b87f83ba28b99ded1a3a438;p=gnome-shell.git Display dialogs on the primary monitor when no window has focus. Before this change, we displayed dialogs on the monitor containing the focused window if there was any, otherwise on monitor 0. We now use the primary monitor rather than monitor 0 when no window has focus. https://bugzilla.gnome.org/show_bug.cgi?id=648305 --- diff --git a/src/shell-global.c b/src/shell-global.c index 29caaa9cf..b646c6163 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1517,8 +1517,7 @@ shell_global_get_focus_monitor (ShellGlobal *global) } } - meta_screen_get_monitor_geometry (screen, 0, &rect); - return meta_rectangle_copy (&rect); + return shell_global_get_primary_monitor (global); } /**